package com.example.mymvp3.presenter;

import com.example.mymvp3.bean.SendBean;
import com.example.mymvp3.model.TaskModel;
import com.example.mymvp3.view.TaskBaseView;

public class TaskPresenter extends BasePresenter<TaskBaseView, TaskModel> {


    public void callBackData() {
        if (getBaseModel() != null) {
            getBaseModel().queryData("请求参数", new CallBackTaskResponse<SendBean>() {
                @Override
                public void callBackData(SendBean data) {
                    if (getBaseView() != null) {
                        getBaseView().onShowData(data);
                    }
                }
            });
        }

    }


}
